﻿using System;

namespace Nydus.Model.Entities
{
    /// <summary>
    /// Represents an object that can be activated/deactivated.
    /// </summary>
    public interface IActivable
    {
        /// <summary>
        /// <c>true</c> if the object is active, false otherwise.
        /// </summary>
        bool IsActive { get; set; }

        /// <summary>
        /// Returns the date of entity activation.
        /// </summary>
        DateTime DateFrom { get; set; }

        /// <summary>
        /// Returns the date of entity deactivation.
        /// </summary>
        DateTime? DateTo { get; set; }
    }
}
